<template>
  <div>

    <vueshowpdf @closepdf="closepdf" v-model="isshowpdf" :pdfurl="pdfurls" @pdferr="pdferr" :maxscale='4' :minscale='0.6' :scale='1.1' ></vueshowpdf>
    <mt-button size="small" @click.native="showPDF">small</mt-button>
  </div>
</template>
<script>
  import vueshowpdf from 'vueshowpdf'
  export default{
    data (){
      return{
        pdfurls: '//ozg66lgfl.bkt.clouddn.com/%E5%9E%83%E5%9C%BE.pdf',
        isshowpdf: false
      }
    },
    components:{
      vueshowpdf
    },
    methods:{
      closepdf(){
        this.isshowpdf = false
      },
      pdferr(errurl) {
        console.log(errurl);
      },
      showPDF(){
        this.isshowpdf = true
      }
    }

  }
</script>
